package com.wu.common.convertion.errorcode;

public enum CommentErrorCode implements IErrorCode {

    COMMENT_SAVE_ERROR("B000101", "评论保存失败"),
    COMMENT_DELETE_ERROR("B000102", "评论删除失败"),
    COMMENT_LIKE_ERROR("B000103", "评论点赞失败");
    private final String code;

    private final String message;

    CommentErrorCode(String code, String message) {
        this.code = code;
        this.message = message;
    }

    @Override
    public String code() {
        return code;
    }

    @Override
    public String message() {
        return message;
    }
}
